package com.scf.loan.controller;

import com.scf.loan.Service.RiskService;
import com.scf.loan.entity.Appendix;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/config")

public class RiskController {
	@Resource
	private RiskService riskService;

	@GetMapping("/all")
	public List<Appendix> allAppendix() {

		return riskService.allAppendix();
	}

}
